//
//  JZAudioPlay.h
//  JFTwxsd
//
//  Created by Peter on 2019/3/8.
//  Copyright © 2019 junfeiweiyejiaoyujituan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface JZAudioPlay : NSObject

@property (nonatomic,assign) float rate;   //语速
@property (nonatomic,assign) float volume; //音量
@property (nonatomic,assign) float pitchMultiplier;  //音调
@property (nonatomic,assign) BOOL  autoPlay;  //自动播放

//类方法实例出对象
+ (JZAudioPlay *)SDSoundPlayerInit;
//基础设置，如果有别的设置，也很好实现
- (void)setDefaultWithVolume:(float)aVolume rate:(CGFloat)aRate pitchMultiplier:(CGFloat)aPitchMultiplier;
//播放并给出文字
- (void)play:(NSString *)string;
- (void)addOperations:(NSString *)title;

@end

NS_ASSUME_NONNULL_END
